
<br />

<div class="pagedTableDefault">

<table cellspacing="0" cellpading="0" border="1" class="pagedTable">

<tr>
<th colspan="80"><h1>{$PAGE_TITLE}</h1></th>
</tr>
<tr>
<th colspan="80"><h3>{$PAGE_SUBTITLE}</h3></th>
<tr>

<th align="right">#</th>
{foreach from=$ROWS_TITLES item=title}
  <th>{$title}</th>
{/foreach}
</tr>

{assign var=ant value=""}
{assign var=ant2 value=""}
{assign var=ant3 value=""}

{foreach from=$ROWS_DATA item=row}
<tr>
<td align="right">{counter}</td>

{foreach from=$row item=cell key=k name=field}
    {assign var=i value=$smarty.foreach.field.index}
    {if $smarty.foreach.field.index == 0 }
        {if $cell != $ant}
            <td>{$cell}</td>
            {assign var=ant value=$cell}
            {assign var=ant2 value=""}
            {assign var=ant3 value=""}
        {else}
            <td align="center"></td>
        {/if}
    {elseif $smarty.foreach.field.index == 1 }
        {if $cell != $ant2}
            <td>{$cell}</td>
            {assign var=ant2 value=$cell}
            {assign var=ant3 value=""}
        {else}
            <td align="center"></td>
        {/if}
    {elseif $smarty.foreach.field.index == 2 }
        {if $cell != $ant3}
            <td>{$cell}</td>
            {assign var=ant3 value=$cell}
        {else}
            <td align="center"></td>
        {/if}
    {else}
        <td>{$cell}</td>
    {/if}
{/foreach}


</tr>
{/foreach}

<tr>
<td colspan="80">Total {$ROWS_MAX} records</td>
</tr>

</table>

</div>

<br />
<br />

